<?php
/*check to make sure that the session has been
 * started properly and that the user is admin
* , if not redirect to login page
*/
session_start();
if(!isset($_SESSION['userid'])){
	header("location: /f21na/login.php");
	exit();
} else if(!($_SESSION['userRole']=='1')){
	header("location: /f21na/home/home.php");
	exit();
}
?>